#import "Rectangle.h"
#import "XYPoint.h"

int main (int argc, char *argv[])
{
    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];

    Rectangle *myRect = [[Rectangle alloc] init];
    XYPoint   *myPoint = [[XYPoint alloc] init];

    [myPoint setX: 100 andY: 200];

    [myRect setWidth: 5 andHeight: 8];
    myRect.origin = myPoint;

    NSLog (@"Prostokt w = %i, h = %i", myRect.width, myRect.height);

    NSLog (@"Wsprzdne pocztku: (%i, %i)",myRect.origin.x, myRect.origin.y);

    NSLog (@"Pole powierzchni = %i, Obwd = %i",
       [myRect area], [myRect perimeter]);

    [myRect release];
    [myPoint release];

    [pool drain];
    return 0;
}